﻿namespace MsForgeReboot.Web {
    #region Usings

    using System.Web.Optimization;

    #endregion

    public class BundleConfig {
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles) {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include("~/Scripts/jquery-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include("~/Scripts/jquery-ui-{version}.js"));

            bundles.Add(
                new ScriptBundle("~/bundles/jqueryval").Include(
                    "~/Scripts/jquery.unobtrusive*", "~/Scripts/jquery.validate*"));

            bundles.Add(
                new ScriptBundle("~/bundles/controlpanel/sections").Include(
                    "~/Scripts/ControlPanel/controlpanel.js",
                    "~/Scripts/ControlPanel/Cms/cp_cms.js",
                    "~/Scripts/ckeditor/ckeditor.js"));

            bundles.Add(
                new ScriptBundle("~/bundles/controlpanel/blog/edit").Include("~/Scripts/ControlPanel/Blog/Edit.js"));

            bundles.Add(
                new ScriptBundle("~/bundles/controlpanel/blog/index").Include("~/Scripts/ControlPanel/Blog/Index.js"));

            bundles.Add(
                new ScriptBundle("~/bundles/controlpanel/speakers/index").Include(
                    "~/Scripts/ControlPanel/Speakers/Index.js"));

            bundles.Add(
                new ScriptBundle("~/bundles/controlpanel/speakers/edit").Include(
                    "~/Scripts/ControlPanel/Speakers/Edit.js"));

            bundles.Add(
                new ScriptBundle("~/bundles/controlpanel/usergroup/index").Include(
                    "~/Scripts/ControlPanel/UserGroup/Index.js"));

            bundles.Add(
                new ScriptBundle("~/bundles/controlpanel/usergroup/edit").Include(
                    "~/Scripts/ControlPanel/UserGroup/Edit.js"));

            bundles.Add(
                new ScriptBundle("~/bundles/controlpanel/event/index").Include(
                    "~/Scripts/ControlPanel/UserGroup/Index.js"));

            bundles.Add(
                new ScriptBundle("~/bundles/controlpanel/event/edit").Include(
                    "~/Scripts/ControlPanel/UserGroup/Edit.js"));

            bundles.Add(
                new ScriptBundle("~/bundles/controlpanel/mediaGallery/index").Include(
                    "~/Scripts/ControlPanel/MediaGallery/Index.js"));

            bundles.Add(
                new StyleBundle("~/bundles/controlpanel/mediaGallery/edit_css").Include(
                    "~/Content/bootstrap-fileupload.css"));

            bundles.Add(
                new ScriptBundle("~/bundles/controlpanel/mediaGallery/edit").Include(
                    "~/Scripts/ControlPanel/MediaGallery/Edit.js", "~/Scripts/bootstrap-fileupload.js"));

            // Use the development version of Modernizr to develop with and learn from. Then, when you're
            // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include("~/Scripts/modernizr-*"));

            bundles.Add(
                new ScriptBundle("~/bundles/bootstrap").Include(
                    "~/Scripts/jquery-{version}.js", "~/Scripts/bootstrap.js"));

            bundles.Add(
                new StyleBundle("~/bundles/cp/css").Include(
                    "~/Content/site.css", "~/Content/bootstrap.css", "~/Content/font-awesome.css"));

            bundles.Add(
                new StyleBundle("~/bundles/main/css").Include(
                    "~/Content/bootstrap.css",
                    "~/Content/bootstrap-responsive.css",
                    "~/Content/font-awesome.css",
                    "~/Content/MainSite.css"));

            bundles.Add(
                new StyleBundle("~/Content/themes/base/css").Include(
                    "~/Content/themes/base/jquery.ui.core.css",
                    "~/Content/themes/base/jquery.ui.resizable.css",
                    "~/Content/themes/base/jquery.ui.selectable.css",
                    "~/Content/themes/base/jquery.ui.accordion.css",
                    "~/Content/themes/base/jquery.ui.autocomplete.css",
                    "~/Content/themes/base/jquery.ui.button.css",
                    "~/Content/themes/base/jquery.ui.dialog.css",
                    "~/Content/themes/base/jquery.ui.slider.css",
                    "~/Content/themes/base/jquery.ui.tabs.css",
                    "~/Content/themes/base/jquery.ui.datepicker.css",
                    "~/Content/themes/base/jquery.ui.progressbar.css",
                    "~/Content/themes/base/jquery.ui.theme.css"));

            bundles.Add(
                new ScriptBundle("~/bundles/bootstrap/select2/js").Include(
                    "~/Scripts/select2-3.4.0/select2.js", "~/Scripts/select2-3.4.0/select2_locale_sr-Latn-RS.js"));

            bundles.Add(new StyleBundle("~/bundles/bootstrap/select2/css").Include("~/Content/select2.css"));
        }
    }
}